package com.platform.module.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.platform.common.annotation.Excels;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.platform.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotBlank;
import com.platform.common.core.domain.BaseEntity;

/**
 * 集中器型号数据对象 base_concentrator_type
 * 
 * @author wangqi
 * @date 2020-07-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("base_concentrator_type")
public class BaseConcentratorType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 类型id */
    @TableId(type = IdType.AUTO)
    private Long typeId;

    /** 集中器型号 */
    @NotBlank(message = "集中器型号不能为空")
    @Excel(name = "集中器型号")
    private String typeName;


    /** 容量 */
    @Excel(name = "容量")
    private String concentratorVolume;

    /** 厂商id */
    @Excel(name = "厂商id")
    private Long factoryId;

    /** 删除标志（0正常1删除） */
    private String delFlag;

    /** 厂商对象 */
    @Excels({
            @Excel(name = "厂商名称", targetAttr = "factoryName", type = Excel.Type.EXPORT),
            @Excel(name = "厂商代码", targetAttr = "factoryCode", type = Excel.Type.EXPORT)
    })
    @TableField(exist = false)
    private BaseFactory factory;

    @Excel(name = "厂商名称", type = Excel.Type.IMPORT)
    @TableField(exist = false)
    private String factoryName;

    @TableField(exist = false)
    private Integer count;
}
